<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML>
<html>
<head>
<meta name="generator" content="HTML Tidy for HTML5 (experimental) for Windows https://github.com/w3c/tidy-html5/tree/c63cc39" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理平台</title>
<link href="../css/haiersoft.css" rel="stylesheet" type="text/css" />
<link href="../css/print.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/side.js" type="text/javascript"></script>
<script type="text/javascript" src="../js/menu-data.js"></script>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
<style>
html,body {
	width: 100%;
	height: 100%;
	/* overflow-x: hidden;
    overflow-y: auto; */
    overflow: hidden;
	margin: 0;
	background-image: url(../images/black-Linen.png);
}

.header_top-box {
	margin: 0.25em 0 0 0;
	width: 100%;
	height: 38px;
	background: rgba(71, 71, 71, 0.5);
	border-bottom: 3px solid #000000;
	color: #fff;
}

.header-top-left {
	margin: 0 0 0 2.5em;
	width: 20%;
	height: 38px;
	float: left;
}

.header-top-right {
	margin: 0 5em 0 0;
	width: 10%;
	height: 38px;
	float: right;
}

.header-top-right ul{
	line-height: 38px;
}

.header-top-right ul span{
	margin: 15px;
}

.header-top-right ul span a{
	color: #fff;
	text-decoration: none
}
</style>
</head>
<body>
	<!-- 菜单收缩框 -->
	<!--<div class="picBox" onclick="switchSysBar()" id="switchPoint" style="position:absolute;width:1%;height:100%;left:0"></div>-->
	<div class="header_top-box">
		<div class="header-top-left">
			<img src="../images/logo_f.png" onclick="window.location.href='../index.jsp'" />
		</div>
		<div class="header-top-right">
			<ul>
				<span class="active"><a href="" onclick="jumpurl(welcome.jsp)">${session.loginUser.name}</a></span>
				<span class="active"><a href="" onclick="logout()">注销</a></span>
			</ul>
		</div>
	</div>
	<div class="wrap_left" id="frmTitle" name="fmTitle" style="position:absolute;width:12%;height:93.7%;left:0%;overflow:hidden">
		<div id="menu" style="position:absolute;width:100%;height:100%;overflow-y:auto">
			<!-- /Logo -->
			<!-- menu_list -->
			<div class="menu_list">
				<dl id="menu_array">

				</dl>
			</div>
		</div>
		<!-- /menu_list -->
	</div>
	<!-- /wrap_left -->
	<!-- picBox -->

	<div style="position:absolute;width:88%;height:100%;right:0">
		<iframe src="welcome.jsp" frameBorder="no" style="width:100%;height:93.7%;" id="contentWin"></iframe>
	</div>
	<!-- /picBox -->
	<script type="text/javascript">
			$(function(){
				var temphtml = ""
				for(var i=0;i<menu_data.length;i++){
					temphtml += '<dt>'
					var t = menu_data[i]
					if(t.nodes.length>0){
						temphtml += '<span>'+t.title+'</span>'
						temphtml += '</dt>'
						temphtml += '<dd>'
						for(var j = 0;j<t.nodes.length;j++){
							var n = t.nodes[j]
							temphtml += '<a href="##" title="'+n.title+'" onclick="jumpurl(\''+n.url+'\')">'+n.title+'</a>'
						}
						temphtml += '</dd>'
					}else{
						temphtml += '<span href="##" onclick="jumpurl(\''+t.url+'\')">'+t.title+'</span>'
					}
					temphtml += '</dt>'
				}
				
				document.getElementById("menu_array").innerHTML = temphtml
				$(".menu_list dt").click(function(){
					$(this).toggleClass("open").next("").slideToggle("fast");
				});
			}); 
			
			function jumpurl(url){
				document.getElementById("contentWin").src=url;
			}
			
			function logout(){
				if(confirm("是否要退出管理员登陆？")){
					$.ajax({
						type:'post',
						url: "logout.action",
						data:{},
						dataType: "json",
						success: function(data){
							window.location.href = "<%=basePath%>index.jsp"
						}
					})
				} else {
					return false;
				}
			}
		</script>
</body>
</html>

